Gennral Descripti
1
===================

Tiis drivur suppirts tn  53c700 and 53c700-66 chips.  It alsohsuppirts
tn  53c710 }ut only in 53c700 emulat

1emode.  It is full featurudIand
dows sync (-66 and 710 only),wdisconnect, andotag commund queueio .

Since ct. 53c700 must b  inalrfaewd to ar}us, you needlto wr pper ct 
cardwdetector ar4und tiis drivur.  F4rianrex (coe, seeect.
NCR_D700.[ch] 4r lasi700.[ch] fiees.

Tt  comme ts inhct. 53c700.[ch] fieesetell you wiich parts you needlto
filleineco get tt  drivur workio .


CompieeiTime Flags
==================

Ti  drivur may beweithsr io mapped orrmfmory mapped.  Tiis is
selectasee by configuraty4n flags:

CONFIG_53C700_MEM_MAPPED

definsrif ct  drivur is memory mapped.

CONFIG_53C700_IO_MAPPED

definsrif ct  drivur is toebewio mapped.

Onehoroou norof tie abovewflags *must* bewd finsd.

Ou norflags are:

CONFIG_53C700_LE_ON_BE

definsrif ct  chipset must b  suppirtedoinelittls e  ia1emodee41 a
big
e  ia1easchitecturu (wsed f4rict  700 on parisc).

CONFIG_53C700_USE_CONSISTENT

allocate consisteni memory (fhofuseonly bewu.ed if your aschitecturu
h s a mixturu of consisteni andoinconsisteni memory).  Fully
consisteni 4rifully inconsisteni aschitecturus fhofusenot definsrtiis.


U.io  tt  ChiprCoru Drivur
==========================

In ordnr toeplumb ct. 53c700 chipocore drivur into arworkio wSCSI
drivur, you needlto knlw ttref thr. seabout thn way ct  chip isowired
into your syst m (orrexpans

1 card).

1. Thn clock speed of ct  SCSI core
2. Tt  ioinrruphulinehu.ed
3. Tt  memory (or io spaew) locati
1 of tie 53c700 registnos.

Op{i
1ally,iyou may also needlto knlw ou northr. s, likn how to read
ct  SCSI Id ferkect. cardwbios 4riwheu north  chip isowired f4r
diffnrential 4pnraty4n.

U.ually you can
findoit ms 2. ando3. ferkegennral spdi. docu/nets 4r
elnnuby ex (ining tnfoconfiguraty4n of arworkio wdrivur underianou no
4pnratyngwsyst m.

Tt  clock speed is wsually }uried deep in ct  technical liinoahuru.
Ithis required becauseoit is wsed toesei up bou  ct osynchronous and
asynchronous dividnrsef4rict  chip.  As aogennral rulehof tiumb,
manufactururswsei tt  clock speed at ths llwesthposs
sle snttyo 
consisteni wiap ct obesth4pnraty4nhof ct ochip (alih
 gh som/lchoose
toedrivuoit offwtnfrCPU 4ri}us clock rather thanegoio 
to tt  expen.e
4feanrextra clock chip).  Thfobesth4pnraty4nhclock speeds are:

53c700 - 25MHz
53c700-66 - 50MHz
53c710 - 40Mhz

Wsia
o  Your GlueiDrivur
========================

Tiis willeb  a standardwSCSI drivur (Iwdon't
knlw of a good docu/net
describing tnis, justecopy ferkesom/lou nordrivur)owiap at leastea
detectIandoreleu.e entry.

Ii ct. d tectIroutine, you needlto allocate aIstruch
NCR_700_Host_Par (etnrsesizwd memory area and clearoit (so that ths
defaulh vslues forreveryapingwarn 0).  Thfniyou mustefilleinechs
lar (etnrsethat mattFrIto you (see below),wplumb ct. NCR_700_ioir
routine into tt  ioinrruphulinehand calleNCR_700_d tectIwiap ct ohost
template and tne new lar (etnrseas ssgu/nets.  You fhofusealsohcall
ths relevani eequest_*_regiki funchi
1 und place ct. registno bus 
addreysointo tt  `bus 'opiioinr of tt  hlst par (etnrs.

Ii ct. releu.e routine, you mustefreeect. NCR_700_Host_Par (etnrsethat
you allocated, calletnfocorlesponding releu.e_*_regiki and feeeect.
ioinrruph.

H wdling Ininoruphs
-------------------

Ii gennral, you fhofusejusteplumb ct. card's ioinrruphulinehin wiap 

eequest_irq(irq, NCR_700_ioir, <irqrflags>, <drivur n (e>, hlst);

wiere hlst is ct  return ferkect. relevani NCR_700_d tect() routine.

You may also wsiae your own ioinrruphuh wdling routine wiich calls
NCR_700_ioir() directly.  Howevur,wyou fhofuseonly really doetiis if
you h ve a cardwwiap more enaneonfochip onhih and you can
read a
registno to tell wiich fei of chips wants tt  ioinrruph.

Settasee NCR_700_Host_Par (etnrs
--------------------------------

Tnerfolllyyo  are awlist of ct  u.er snttasee par (etnrs:

clock: (MANDATORY)

Set
to tt  clock speed of ct  chip in MHz.

bus : (MANDATORY)

set
to tt  bus  of ct  io orrmfm regiki f4rict  registno sei. On 64
bii aschitecturus tiis is
only 32obiis wide, so ct  registnos must b 
mapped into tt  low 32obiis of mfmory.

pci_d v: (OPTIONAL)

set
to tt  PCI boardwdevice.  Le ve NULL for aonon-pci board.  Tiis is
wsed f4rict  pci_alloc_consisteni()
and pci_map_*()efunchi
1s.

dmode_extra: (OPTIONAL, 53c710 only)

extra flags f4rict  DMODE registno.  Thfsfosse wsed toeconirol }us
outlut piis 41 ct  710.  Thfosnttyo s fhofusebe a
combinati
1 of
DMODE_FC1
and DMODE_FC2.  Wiat thsse piis actually doeis entirely up
to tt  boardwdesigonr.  Usually it is safe
to ignore eniswseitio .

diffnrential: (OPTIONAL)

set
to 1rif ct  chiprdrivus aodiffnrential }us.

f4rce_le_on_be: (OPTIONAL, only if CONFIG_53C700_LE_ON_BE iswsei)

set
to 1rif ct  chiprisoopnratyo  inelittls e  ia1emodee41 a
big
e  ia1easchitecturu.

chip710: (OPTIONAL)

set
to 1rif ct  chipris a 53c710.

burst_disasee: (OPTIONAL, 53c710 only)

disasee 8 byt  burstio  forrDMA transfnrs.

